import 'package:bitcatflutter/common/common_constant.dart';
import 'package:flutter/material.dart';

class ImagePage extends StatelessWidget {
  const ImagePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: const Text('Image'),
      ),
      body: Center(
        child: Padding(
          padding: const EdgeInsets.all(20.0),
          child: ListView(

            children:  [
                const Text('网络图片',textAlign: TextAlign.center,),
                Image.network(CommonConst.url1,width: 100,height: 100,),
                const SizedBox(height: 20,),

              const Text('本地图片',textAlign: TextAlign.center,),
                Image.asset('assets/images/girl.jpeg',width: 100,height: 100,),

              const SizedBox(height: 20,),

              const Text('图标icon',textAlign: TextAlign.center,),
              const Row(
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                Icon(Icons.favorite),
                Icon(Icons.favorite_border),
                Icon(Icons.favorite_border_outlined)
              ],)
            ],
          ),
        ),
      ),
    );
  }
}
